<?php
	require_once("../WdtClient.php");
	$sid = config('services.wdt.sid');
	$appkey = config('services.wdt.appkey');
	$secret = config('services.wdt.secret');
	$url = config('services.wdt.url');

	$c = new \WdtClient;
	$c->sid = $sid;
	$c->appkey = $appkey;
	$c->appsecret = $secret;
	$c->gatewayUrl = 'https://sandbox.wangdian.cn/openapi2/trade_query.php';


	$c->putApiParam('start_time','2020-11-09 17:55:09');
	$c->putApiParam('end_time','2020-11-09 17:55:19');
	$json = $c->wdtOpenApi();
	var_dump($json);
	
?>